<main class="study">  
	<article>
		<h1>Bestilling:</h1>
<?php
		$from_name = $_POST['name'];
		$email = $_POST['email'];
    	$dato = $_POST['dato'];
		$antal= $_POST['antal'];
		
		$full_message = "$from_name har bestilt studiecelle til datoen: $dato";
		$subject = "Studiecelle bestilt";
		$headers = "From: Dokk1\r\n";
		
		
		if(@mail($email, $subject, $full_message, $headers))
		{
		  echo "$from_name har bestilt en studiecelle til $dato";
		}else{
		  echo "Der er sket en fejl, prøv igen";
		}
	
?>

<a href="mainsite.php?page=book_studieceller.php"><h2>Tilbage</h2></a>
</article>